﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Runda.CMS.Common.Entity;
using Runda.CMS.Dal;
using Runda.CMS.Common.Utility;
using System.Transactions;

namespace Runda.CMS.Bll
{
    public partial class CtrtMyNoticeBll
    {
        public void createMyNotice(CtrtMyNoticeEntity entity) {
            using (TransactionScope trans = new TransactionScope()) {
                new CtrtMyNoticeBll().Insert(entity);
                foreach (CtrtMyNoticeUserEntity noticeUserEntity in entity.CtrtMyNoticeUserEntityList) {
                    new CtrtMyNoticeUserBll().Insert(noticeUserEntity);
                }
                trans.Complete();
            }
        }
    }
}
